package com.samphanie.auiu.mbg.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.samphanie.auiu.mbg.model.SysRole;
import com.samphanie.auiu.mbg.model.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

/**
 * 用户角色关联Mapper接口
 *
 * @author zsy
 * @date 2021-05-10
 */
@Mapper
public interface UserRoleMapper extends BaseMapper<UserRole> {

    Set<SysRole> getRoleList(@Param("userId") Long userId);

}
